package com.maiji.cloud.response.login;

import java.util.Date;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.Status;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class UserInfoResDto extends BaseResDto {

	@ApiModelProperty(value = "响应数据")
	private UserInfoResData data;

	public UserInfoResDto(Status status) {
		super(status);
	}

	public void setStatus(Status status) {
		super.setStatus(status);
	}

	public UserInfoResData dataInstance() {
		return new UserInfoResData();
	}

	@NoArgsConstructor
	@Data
	@Accessors(chain = true)
	public class UserInfoResData {

        @ApiModelProperty(value = "ID")
        private String uuId;

		@ApiModelProperty(value = "用户id")
		private String userId;

        @ApiModelProperty(value = "昵称")
        private String nickName;

        @ApiModelProperty(value = "头像")
        private String headUrl;
       
        @ApiModelProperty(value = "个人主页背景图片")
        private String mainPageUrl; //个人主页背景图片

		@ApiModelProperty(value = "0:女，1:男")
		private Integer sex;

		@ApiModelProperty(value = "出生日期")
		private Date birth;

		@ApiModelProperty(value = "身高")
		private String height;

		@ApiModelProperty(value = "原始体重体重")
		private String weight;

		@ApiModelProperty(value = "当前体重")
		private String currentWeight;

		@ApiModelProperty(value = "目标体重")
		private String targetWeight;

		@ApiModelProperty(value = "是否用过麦吉减肥法0:否，1：是")
		private Integer isUse;

		@ApiModelProperty(value = "阶段")
		private Integer stage;

		@ApiModelProperty(value = "天数")
		private Integer day;

		@ApiModelProperty(value = "手机号码")
		private String phone;

		@ApiModelProperty(value = "省")
		private String province;

		@ApiModelProperty(value = "市")
		private String city;

		@ApiModelProperty(value = "区")
		private String county;

		@ApiModelProperty(value = "详细地址")
		private String detailAddress; // 详细地址
		
		@ApiModelProperty(value = "体脂率")
		private String bodyFatRate; //体脂率

		@ApiModelProperty("是否关注")
		private Boolean isFollow;
		
		@ApiModelProperty("是否已设置支付密码")
		private Boolean isSetPayPassword = false;
		
		@ApiModelProperty("是否是通过自己的ID获取的用户信息")
		private Boolean isSelf = false;
		
		@ApiModelProperty(value = "麦吉阶段开启时间")
		private Date stageStartTime;
	}

}
